package com.tjetc.service;

import com.tjetc.domain.FollowHospital;
import com.tjetc.domain.Hospital;
import com.tjetc.vo.Result;

import java.util.List;

public interface FollowHospitalService{


    int deleteByPrimaryKey(Integer id);

    int insert(FollowHospital record);

    int insertSelective(FollowHospital record);

    FollowHospital selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FollowHospital record);

    int updateByPrimaryKey(FollowHospital record);

    Result isFollow(String phone, Integer hid);

    Result follow(String phone, Integer hid);

    Result cancelFollow(String phone, Integer hid);

    List<Hospital> selNameAndIcon(Integer uid);

    int deleteByHidAndUid(Integer hid, Integer uid);

    List<Hospital> selByUid(Integer uid);

    Result getFanCount(String hospitalName);
}
